filechooserentry: Catch tab key earlier
authorBenjamin Otte <otte@redhat.com>
Fri, 16 Dec 2011 18:52:46 +0000 (19:52 +0100)
committerBenjamin Otte <otte@redhat.com>
Fri, 16 Dec 2011 19:09:14 +0000 (20:09 +0100)
commitb9fad15ee635f576b7450cd3fec6a84b2f3e010e
tree921009863e334b9c6dbd039db952f0f75af5abe8
parent640754e98b6a0a59fbfa9f35d03e0f096988a0a2
filechooserentry: Catch tab key earlier

Instead of in the key_press handler, use a signal handler. The signal
handler runs before the default handler, and before other signal
handlers. In particular it runs before the signal handler installed via
gtk_entry_set_completion() which pops down the entry completion, and we
don't want that to happen.

The code does not change the code of the handler in any significant way,
it just refacotrs it to not call the parent anymore.

https://bugzilla.gnome.org/show_bug.cgi?id=663573
gtk/gtkfilechooserentry.c